package com.example.gslih.componentproject.main.slideconflict;

import android.content.Context;
import android.util.AttributeSet;
import android.view.MotionEvent;
import android.widget.ScrollView;

public class NewScrollerView extends ScrollView {
    private int mLastXIntercept;
    private int mLastYIntercept;

    public NewScrollerView(Context context) {
        super(context);
    }

    public NewScrollerView(Context context, AttributeSet attrs) {
        super(context, attrs);
    }

    public NewScrollerView(Context context, AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
    }

    @Override
    public boolean onInterceptTouchEvent(MotionEvent event) {
        boolean intercept = false;
//        int x = (int) event.getX();
//        int y = (int) event.getY();
//        switch (event.getAction()) {
//            case MotionEvent.ACTION_DOWN: {
//                intercept = false;
//                break;
//            }
//            case MotionEvent.ACTION_MOVE: {
////                if (满足父容器的拦截要求) {
////                    intercept = true;
////                } else {
////                    intercept = false;
////                }
//                break;
//            }
//            case MotionEvent.ACTION_UP: {
//                intercept = false;
//                break;
//            }
//            default:
//                break;
//        }
//        mLastXIntercept = x;
//        mLastYIntercept = y;
        return intercept;
    }
}
